﻿<assign name="title" value="表单验证" />
<include file="top.html" />
	<h3>表单验证：程序-/App/Action/Action.Form.asp，模板-/App/Templates/default/Home/Form.html</h3>
	<table width="800" class="list">
		<thead class="h">
	<tr><td width="100">属性</td><td>意义（/代表可选值为其中之一）</td></tr></thead>
	<tbody class="l">
		<tr><td>required</td><td>表单项是否为必填：required/required:true/required:false</td></tr>
		<tr><td>min-length</td><td>最小长度：min-length:6</td></tr>
		<tr><td>max-length</td><td>最大长度：max-length:20</td></tr>
		<tr><td>min</td><td>最小值：min:6</td></tr>
		<tr><td>max</td><td>最大值：max:20</td></tr>
		<tr><td>between</td><td>最大值：between:6,20</td></tr>
		<tr><td>exp</td><td>正则表达式：exp:/^(\d+)$/，如果设置本属性，本属性必须放在最后一个</td></tr>
		<tr><td>numeric</td><td>数字：numeric/numeric:true/numeric:false</td></tr>
		<tr><td>length</td><td>限制长度：length:15</td></tr>
		<tr><td>equal</td><td>等于某表单项：equal:name</td></tr>
		<tr><td>default</td><td>设置表单默认值：default:10</td></tr>
		<tr><td>快捷验证</td><td>用于快捷验证：qq/email/mobile/telphone/zipcode</td></tr>
	</tbody>
	</table>
{$rules}<br />
{$result}
<include file="foot.html" />